package fr.buildcity.jeu.listeners;

import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.gui.AbstractComponent;
import org.newdawn.slick.gui.ComponentListener;

public class CaseListener implements ComponentListener {

	Graphics g;

	public CaseListener(GameContainer c) {
		g = c.getGraphics();
	}

	@Override
	public void componentActivated(AbstractComponent source) {
		System.out.println(source);
		g.setColor(new Color(1f, 1f, 1f, 1f));
		g.drawString(source.toString(), 0, 0);
	}
}
